# -*- coding:utf-8 -*-
"""
@author:zhuyuping
@description:
@time:2020/6/3 0:09
"""

from django import forms
from comment.models import Comment


class CommentForm(forms.ModelForm):
    class Meta:
        # comment模型中的2个外键将通过视图逻辑自动填写，所以这里只需要提交body就足够了。
        model = Comment
        fields = ['body']
